package top.fangw.tenant;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

/**
 * @description: 基础信息管理
 * @author: fgw
 * @createDate: 2023/11/19
 */
@Slf4j
@EnableDiscoveryClient
@SpringBootApplication(scanBasePackages = {"top.fangw.tenant", "top.fangw.common.*"})
@EnableCaching
public class TenantApplication {
    public static void main(String[] args) {
        log.info("Begin to start Spring Boot Application");
        long startTime = System.currentTimeMillis();

        SpringApplication.run(TenantApplication.class, args);

        long endTime = System.currentTimeMillis();
        log.info("End starting Spring Boot Application, Time used: " + (endTime - startTime));
    }
}
